<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/5/14 0014
  Time: 20:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/include/header.jsp"%>
<input type="text" value="${pageIndex}" hidden id="pageIndex">
<input type="text" value="${pageCount}" hidden id="pageCount">
<input type="text" value='${jsonObject}' hidden id="jsonObject">

<div class="layui-form" id="cp">
    <table class="layui-table" style="text-overflow:clip; overflow:hidden; white-space:nowrap;">
        <colgroup>
            <col width="50">
            <col width="150">
            <col width="150">
            <col width="200">
            <col width="200">
            <col width="150">
            <col>
        </colgroup>
        <thead>
        <tr>
            <th>序号</th>
            <th>名称</th>
            <th>地址</th>
            <th>图片地址</th>
            <th>宣传类型</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${croPropaganda}" var="propaganda" varStatus="i">
            <tr>
                <c:set var="a" value="${a+1}" />
                <td>${a}</td>
                <td>${propaganda.propagandaname}</td>
                <td>${propaganda.url}</td>
                <td>${propaganda.photo}</td>
                <td>${SysDict['propaganda_type'][propaganda.type]}</td>
                <td>${propaganda.createtime}</td>
                <td><a data-method="updatepropaganda" propagandaid="${propaganda.id}" class="layui-btn updatesumit">修改</a>
                    <a data-method="delpropaganda" propagandaid="${propaganda.id}" class="layui-btn delsumit" >删除</a></td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</div>
<%--分页显示区域--%>
<div id="fullpage"></div>
